package com.wiim.model;

import org.json.JSONException;

import com.facebook.model.GraphUser;


public class FaceModel {
	private String sName = "";
	private String sId = "";
	private String sLinkImage = "";
	private String sEmail = "";
	private String sFirstName = "";
	private String sLastName;
	private String sBirthDay = "";
	private String sGender = "";

	public String getNameFace() {
		if (sName == null) {
			sName = "";
		}
		return sName;
	}

	public String getLinkImage() {
		if (sLinkImage == null) {
			sLinkImage = "";
		}
		return sLinkImage;
	}

	public String getEmail() {
		if (sEmail == null) {
			sEmail = "";
		}
		return sEmail;
	}

	public String getFirstName() {
		if (sFirstName == null) {
			sFirstName = "";
		}
		return sFirstName;
	}

	public String getLastName() {
		if (sLastName == null) {
			sLastName = "null cmnr";
		}
		return sLastName;
	}

	public String getsBirthDay() {
		if (sBirthDay == null) {
			sBirthDay = "";
		}
		return sBirthDay;
	}

	public String getsGender() {
		if (sGender == null) {
			sGender = "";
		}
		return sGender;
	}

	public String getIDFace() {
		if (sId == null) {
			sId = "0";
		}
		return sId;
	}

	public void setData(GraphUser user,  String ema) throws JSONException {
		this.sId = user.getId();
		sEmail=ema;
		this.sFirstName = user.getFirstName();
		sLastName=user.getLastName();
		sBirthDay=user.getBirthday();
		sLinkImage=user.getLink();
	}

}
